<?php
	if ( function_exists(icl_get_languages) ) :
		$langs = icl_get_languages('skip_missing=0&orderby=id');
?>
<ul id="menu-langs" class="menu menu-horizontal menu-langs">
<?php foreach ( $langs as $lang ) : ?>
	<li class="menu-item">
		<a href="<?php echo $lang['url']; ?>" title="<?php echo $lang['translated_name']; ?>">
			<?php echo $lang['native_name']; ?>
<!--
			<img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/flag-<?php echo $lang['language_code']; ?>.png"
				alt="<?php echo $lang['translated_name']; ?>" 
				title="<?php echo $lang['translated_name']; ?>"/>
-->
		</a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
